﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace C4F.DevKit.Calendar
{
    /// <summary>
    /// An object to represent an attendee of a calendar appointment.
    /// </summary>    
    public class Attendee
    {
        #region Public Constructors

        /// <summary>
        /// Creates a new attendee.
        /// </summary>
        public Attendee() { }

        /// <summary>
        /// Creates a new attendee.
        /// </summary>
        /// <param name="name">The name of the attendee.</param>
        /// <param name="email">The e-mail address of the attendee.</param>
        public Attendee(string name, string email)
        {
            Name = name;
            EmailAddress = email;
        }

        #endregion

        #region Private Members

        private string _name;

        private string _emailAddress;

        #endregion

        #region Public Properties

        /// <summary>
        /// The attendee's name.
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        /// <summary>
        /// The attendee's e-mail address.
        /// </summary>
        public string EmailAddress
        {
            get
            {
                return _emailAddress;
            }
            set
            {
                _emailAddress = value;
            }
        }

        #endregion
    }
}
